package com.navi.core.mysqlEntity;

import com.navi.core.entity.BaseEntity;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "bis_user", schema = "icim_jn", catalog = "")
public class BisUserEntity extends BaseEntity {
    private String usrId;
    private String unqSeqId;
    private String usrKey;
    private String usrName;
    private String usrEName;
    private String usrHeadFlg;
    private String lockFlg;
    private String usrMail;
    private String usrSms;
    private String usrPhs;
    private Timestamp regTimestamp;
    private String evtUsr;
    private Timestamp evtTimestamp;
    private String deptIdFk;
    private String usrCardId;
    private String usrTyp;
    private String usrLoc;
    private String usrLevel;
    private String usrJob;
    private String usrJobLoc;
    private String validFlg;
    private String evtCate;
    private String systemId;
    private String fabIdFk;
    private String fabId;
    private String role;

    @Id
    @Column(name = "USR_ID")
    public String getUsrId() {
        return usrId;
    }

    public void setUsrId(String usrId) {
        this.usrId = usrId;
    }

    @Basic
    @Column(name = "UNQ_SEQ_ID")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "USR_KEY")
    public String getUsrKey() {
        return usrKey;
    }

    public void setUsrKey(String usrKey) {
        this.usrKey = usrKey;
    }

    @Basic
    @Column(name = "USR_NAME")
    public String getUsrName() {
        return usrName;
    }

    public void setUsrName(String usrName) {
        this.usrName = usrName;
    }

    @Basic
    @Column(name = "USR_E_NAME")
    public String getUsrEName() {
        return usrEName;
    }

    public void setUsrEName(String usrEName) {
        this.usrEName = usrEName;
    }

    @Basic
    @Column(name = "USR_HEAD_FLG")
    public String getUsrHeadFlg() {
        return usrHeadFlg;
    }

    public void setUsrHeadFlg(String usrHeadFlg) {
        this.usrHeadFlg = usrHeadFlg;
    }

    @Basic
    @Column(name = "LOCK_FLG")
    public String getLockFlg() {
        return lockFlg;
    }

    public void setLockFlg(String lockFlg) {
        this.lockFlg = lockFlg;
    }

    @Basic
    @Column(name = "USR_MAIL")
    public String getUsrMail() {
        return usrMail;
    }

    public void setUsrMail(String usrMail) {
        this.usrMail = usrMail;
    }

    @Basic
    @Column(name = "USR_SMS")
    public String getUsrSms() {
        return usrSms;
    }

    public void setUsrSms(String usrSms) {
        this.usrSms = usrSms;
    }

    @Basic
    @Column(name = "USR_PHS")
    public String getUsrPhs() {
        return usrPhs;
    }

    public void setUsrPhs(String usrPhs) {
        this.usrPhs = usrPhs;
    }

    @Basic
    @Column(name = "REG_TIMESTAMP")
    public Timestamp getRegTimestamp() {
        return regTimestamp;
    }

    public void setRegTimestamp(Timestamp regTimestamp) {
        this.regTimestamp = regTimestamp;
    }

    @Basic
    @Column(name = "EVT_USR")
    public String getEvtUsr() {
        return evtUsr;
    }

    public void setEvtUsr(String evtUsr) {
        this.evtUsr = evtUsr;
    }

    @Basic
    @Column(name = "EVT_TIMESTAMP")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "DEPT_ID_FK")
    public String getDeptIdFk() {
        return deptIdFk;
    }

    public void setDeptIdFk(String deptIdFk) {
        this.deptIdFk = deptIdFk;
    }

    @Basic
    @Column(name = "USR_CARD_ID")
    public String getUsrCardId() {
        return usrCardId;
    }

    public void setUsrCardId(String usrCardId) {
        this.usrCardId = usrCardId;
    }

    @Basic
    @Column(name = "USR_TYP")
    public String getUsrTyp() {
        return usrTyp;
    }

    public void setUsrTyp(String usrTyp) {
        this.usrTyp = usrTyp;
    }

    @Basic
    @Column(name = "USR_LOC")
    public String getUsrLoc() {
        return usrLoc;
    }

    public void setUsrLoc(String usrLoc) {
        this.usrLoc = usrLoc;
    }

    @Basic
    @Column(name = "USR_LEVEL")
    public String getUsrLevel() {
        return usrLevel;
    }

    public void setUsrLevel(String usrLevel) {
        this.usrLevel = usrLevel;
    }

    @Basic
    @Column(name = "USR_JOB")
    public String getUsrJob() {
        return usrJob;
    }

    public void setUsrJob(String usrJob) {
        this.usrJob = usrJob;
    }

    @Basic
    @Column(name = "USR_JOB_LOC")
    public String getUsrJobLoc() {
        return usrJobLoc;
    }

    public void setUsrJobLoc(String usrJobLoc) {
        this.usrJobLoc = usrJobLoc;
    }

    @Basic
    @Column(name = "VALID_FLG")
    public String getValidFlg() {
        return validFlg;
    }

    public void setValidFlg(String validFlg) {
        this.validFlg = validFlg;
    }

    @Basic
    @Column(name = "EVT_CATE")
    public String getEvtCate() {
        return evtCate;
    }

    public void setEvtCate(String evtCate) {
        this.evtCate = evtCate;
    }

    @Basic
    @Column(name = "SYSTEM_ID")
    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    @Basic
    @Column(name = "FAB_ID_FK")
    public String getFabIdFk() {
        return fabIdFk;
    }

    public void setFabIdFk(String fabIdFk) {
        this.fabIdFk = fabIdFk;
    }

    @Basic
    @Column(name = "FAB_ID")
    public String getFabId() {
        return fabId;
    }

    public void setFabId(String fabId) {
        this.fabId = fabId;
    }

    @Basic
    @Column(name = "ROLE")
    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BisUserEntity that = (BisUserEntity) o;

        if (usrId != null ? !usrId.equals(that.usrId) : that.usrId != null) return false;
        if (unqSeqId != null ? !unqSeqId.equals(that.unqSeqId) : that.unqSeqId != null) return false;
        if (usrKey != null ? !usrKey.equals(that.usrKey) : that.usrKey != null) return false;
        if (usrName != null ? !usrName.equals(that.usrName) : that.usrName != null) return false;
        if (usrEName != null ? !usrEName.equals(that.usrEName) : that.usrEName != null) return false;
        if (usrHeadFlg != null ? !usrHeadFlg.equals(that.usrHeadFlg) : that.usrHeadFlg != null) return false;
        if (lockFlg != null ? !lockFlg.equals(that.lockFlg) : that.lockFlg != null) return false;
        if (usrMail != null ? !usrMail.equals(that.usrMail) : that.usrMail != null) return false;
        if (usrSms != null ? !usrSms.equals(that.usrSms) : that.usrSms != null) return false;
        if (usrPhs != null ? !usrPhs.equals(that.usrPhs) : that.usrPhs != null) return false;
        if (regTimestamp != null ? !regTimestamp.equals(that.regTimestamp) : that.regTimestamp != null) return false;
        if (evtUsr != null ? !evtUsr.equals(that.evtUsr) : that.evtUsr != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(that.evtTimestamp) : that.evtTimestamp != null) return false;
        if (deptIdFk != null ? !deptIdFk.equals(that.deptIdFk) : that.deptIdFk != null) return false;
        if (usrCardId != null ? !usrCardId.equals(that.usrCardId) : that.usrCardId != null) return false;
        if (usrTyp != null ? !usrTyp.equals(that.usrTyp) : that.usrTyp != null) return false;
        if (usrLoc != null ? !usrLoc.equals(that.usrLoc) : that.usrLoc != null) return false;
        if (usrLevel != null ? !usrLevel.equals(that.usrLevel) : that.usrLevel != null) return false;
        if (usrJob != null ? !usrJob.equals(that.usrJob) : that.usrJob != null) return false;
        if (usrJobLoc != null ? !usrJobLoc.equals(that.usrJobLoc) : that.usrJobLoc != null) return false;
        if (validFlg != null ? !validFlg.equals(that.validFlg) : that.validFlg != null) return false;
        if (evtCate != null ? !evtCate.equals(that.evtCate) : that.evtCate != null) return false;
        if (systemId != null ? !systemId.equals(that.systemId) : that.systemId != null) return false;
        if (fabIdFk != null ? !fabIdFk.equals(that.fabIdFk) : that.fabIdFk != null) return false;
        if (fabId != null ? !fabId.equals(that.fabId) : that.fabId != null) return false;
        if (role != null ? !role.equals(that.role) : that.role != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = usrId != null ? usrId.hashCode() : 0;
        result = 31 * result + (unqSeqId != null ? unqSeqId.hashCode() : 0);
        result = 31 * result + (usrKey != null ? usrKey.hashCode() : 0);
        result = 31 * result + (usrName != null ? usrName.hashCode() : 0);
        result = 31 * result + (usrEName != null ? usrEName.hashCode() : 0);
        result = 31 * result + (usrHeadFlg != null ? usrHeadFlg.hashCode() : 0);
        result = 31 * result + (lockFlg != null ? lockFlg.hashCode() : 0);
        result = 31 * result + (usrMail != null ? usrMail.hashCode() : 0);
        result = 31 * result + (usrSms != null ? usrSms.hashCode() : 0);
        result = 31 * result + (usrPhs != null ? usrPhs.hashCode() : 0);
        result = 31 * result + (regTimestamp != null ? regTimestamp.hashCode() : 0);
        result = 31 * result + (evtUsr != null ? evtUsr.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        result = 31 * result + (deptIdFk != null ? deptIdFk.hashCode() : 0);
        result = 31 * result + (usrCardId != null ? usrCardId.hashCode() : 0);
        result = 31 * result + (usrTyp != null ? usrTyp.hashCode() : 0);
        result = 31 * result + (usrLoc != null ? usrLoc.hashCode() : 0);
        result = 31 * result + (usrLevel != null ? usrLevel.hashCode() : 0);
        result = 31 * result + (usrJob != null ? usrJob.hashCode() : 0);
        result = 31 * result + (usrJobLoc != null ? usrJobLoc.hashCode() : 0);
        result = 31 * result + (validFlg != null ? validFlg.hashCode() : 0);
        result = 31 * result + (evtCate != null ? evtCate.hashCode() : 0);
        result = 31 * result + (systemId != null ? systemId.hashCode() : 0);
        result = 31 * result + (fabIdFk != null ? fabIdFk.hashCode() : 0);
        result = 31 * result + (fabId != null ? fabId.hashCode() : 0);
        result = 31 * result + (role != null ? role.hashCode() : 0);
        return result;
    }
}
